//
//  XFYCropImageView.h
//  SDKSample
//
//  Created by 小肥羊 on 15/6/30.
//  Copyright (c) 2015年 Zhu‘s Game House. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIImage+XFYAdditions.h"

@interface XFYCropImageMaskView : UIView

@property (nonatomic) CGRect cropRect;

- (void)setCropSize:(CGSize)size;
- (CGSize)cropSize;

@end

@interface XFYCropImageView : UIView <UIScrollViewDelegate>

@property (strong, nonatomic) UIScrollView *scrollView;
@property (strong, nonatomic) UIImageView *imageView;
@property (strong, nonatomic) XFYCropImageMaskView *maskView;
@property (strong, nonatomic) UIImage *image;
@property (nonatomic) UIEdgeInsets imageInset;
@property (nonatomic) CGSize cropSize;

- (UIImage *)cropImage;

@end
